﻿/*******************************************************************************
 * Copyright © 2016 NFine.Framework 版权所有
 * Author: NFine
 * Description: NFine快速开发平台
 * Website：http://www.nfine.cn
*********************************************************************************/
using System;
using log4net;

namespace CubicFWNet.Common
{
    public class Log
    {
        private ILog logger;
        public Log(ILog log)
        {
            this.logger = log;
        }
        public void Error(Exception message)
        {
            this.logger.Error(message);
        }
        public void Error(string message, Exception ex)
        {
            this.logger.Error(message, ex);
        }

        public static void ErrorStatic(Exception exception)
        {
            var log = LogFactory.GetLogger("cubicfamily");
            log.Error(exception);
        }
    }
}
